package br.com.felix.dbm.util.io;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class SQLFileFilter extends FileFilter{
	
	@Override
	public boolean accept(File f) {
		return f.getAbsolutePath().endsWith(".sql") || (f.exists() && f.isDirectory());
	}

	@Override
	public String getDescription() {
		return "SQL file";
	}
}
